<!DOCTYPE html>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!--360浏览器优先以webkit内核解析-->
    <title>成绩管理系统介绍</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
    <link href="../static/css/main/animate.min.css" th:href="@{/css/main/animate.min.css}" rel="stylesheet"/>
    <link href="../static/css/main/style.min862f.css" th:href="@{/css/main/style.min862f.css}" rel="stylesheet"/>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12" id="card">


        </div>

    </div>
</div>

<th:block th:include="include :: footer" />
<script>
    var data = "";
    $(function() {
        $.ajax({
            url:ctx + "system/notice/list",
            dataType:"json",
            type:"post",
            success:function(result){
                data = result.rows;
                var str = '';
                for (var i = 0; i <data.length ; i++) {
                    str +='<div class="ibox">' +
                        '    <div class="ibox-title">' +
                        '      <h3>公告</h3>' +
                        '    </div>' +
                        '    <div class="ibox-content">' +
                        '       <h4>标题--'+data[i].noticeTitle+'</h4>' +
                        '         <p>\n'+data[i].noticeContent+ '</p>' +
                        '     </div>' +
                        '</div>';
                }
                $("#card").html(str);
            },
            error:function(){
                $.modal.msgError("数据请求错误");
            }
        });

        var num = $("#noCheck").val();
        if (num == '1'){
            $("#no").attr("readonly","readonly")
        }
    })


</script>
</body>
</html>
